package zjut.raymond.algorithm;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Raymond
 * @Description Wifi数据特征：mac、平均值、标准差
 */
@Data
@NoArgsConstructor
public class WifiFeatures implements Comparable<WifiFeatures>{
    private String apMac;
    private Double mean;
    private Double standardDeviation;

    public WifiFeatures(String apMac, Double mean, Double standardDeviation) {
        this.apMac = apMac;
        this.mean = mean;
        this.standardDeviation = standardDeviation;
    }


    @Override
    public int compareTo(WifiFeatures o) {
        return o.getMean().compareTo(this.getMean());
    }
}